<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.10.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>common_util: 1. Software Environment</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">common_util
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.10.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

</div><!-- top -->
<div><div class="header">
  <div class="headertitle"><div class="title">1. Software Environment</div></div>
</div><!--header-->
<div class="contents">
<div class="textblock"><p><a class="anchor" id="autotoc_md0"></a> When compiling this project locally, the following software needs to be installed:</p>
<ol type="1">
<li>A compiler that supports C++11 and later standards (Visual Studio 2015 or later, GCC 4.8.1 or later, Clang 3.3 or later)</li>
<li>CMake 3.28.3 or later.</li>
</ol>
<h1><a class="anchor" id="autotoc_md1"></a>
1.1. Windows</h1>
<h2><a class="anchor" id="autotoc_md2"></a>
1.1.1. Download Visual Studio</h2>
<ol type="1">
<li>Download Visual Studio 2015 or later. <a href="https://msdn.itellyou.cn/">https://msdn.itellyou.cn/</a> <img src="https://gitee.com/spencer_luo/common_util/raw/master/docs/quick_start/imgs/msdn_itellyou_win7_64.png" alt="" class="inline"/></li>
<li><p class="startli">Install Visual Studio The only thing you need to care about is to choose "Custom" installation and only install the "Visual C++" related modules (if you are only using it for developing C++ projects), otherwise the installation time will be very long.</p>
<p class="startli"><img src="https://gitee.com/spencer_luo/common_util/raw/master/docs/quick_start/imgs/visualstudio2015_4.png" alt="" class="inline"/> <img src="https://gitee.com/spencer_luo/common_util/raw/master/docs/quick_start/imgs/visualstudio2015_5.png" alt="" class="inline"/></p>
</li>
<li>Test and verify</li>
</ol>
<p>Create a <em>Console Application project</em>, write some code to print "Hello World". Then compile and run it, if "Hello World" is printed correctly, the installation is successful.</p>
<h2><a class="anchor" id="autotoc_md3"></a>
1.1.2. Install CMake</h2>
<ol type="1">
<li>Download CMake 3.28.3 or later. <a href="https://cmake.org/download/">https://cmake.org/download/</a></li>
<li><p class="startli">Install CMake</p>
<p class="startli">Here are some things to note:</p>
</li>
</ol>
<ul>
<li><p class="startli">Choose "Add CMake to the system PATH" to add CMake to the system environment variables, otherwise you need to add CMake to the PATH environment mannually.</p>
<p class="startli"><img src="https://gitee.com/spencer_luo/common_util/raw/master/docs/quick_start/imgs/cmake.png" alt="" class="inline"/></p>
</li>
<li><p class="startli">t is recommended to customize the installation directory, and the directory name should not contain spaces or special characters, otherwise there may be path-related issues when executing from the command line.</p>
<p class="startli"><img src="https://gitee.com/spencer_luo/common_util/raw/master/docs/quick_start/imgs/cmake2.png" alt="" class="inline"/></p>
</li>
</ul>
<ol type="1">
<li><p class="startli">Test and verify</p>
<p class="startli">Open the command line and enter <code>cmake --version</code> , If the version number is displayed correctly, the installation is successful.</p>
</li>
</ol>
<h1><a class="anchor" id="autotoc_md4"></a>
1.2. Linux(Ubuntu)</h1>
<h2><a class="anchor" id="autotoc_md5"></a>
1.2.1. Install GCC Compile</h2>
<ol type="1">
<li>Install GCC 4.8.1</li>
</ol>
<div class="fragment"><div class="line">sudo apt update</div>
<div class="line">sudo apt install gcc</div>
</div><!-- fragment --><ol type="1">
<li>Test and verify</li>
</ol>
<p>Open the command line and enter <code>cmake --version</code> , If the version number is displayed correctly, the installation is successful.</p>
<h2><a class="anchor" id="autotoc_md6"></a>
1.2.2. Install CMake</h2>
<ol type="1">
<li>Install CMake 3.28.3 or later</li>
</ol>
<div class="fragment"><div class="line">sudo apt install cmake</div>
</div><!-- fragment --><ol type="1">
<li>Test and verify</li>
</ol>
<p>Open the command line and enter <code>gcc --version</code> , If the version number is displayed correctly, the installation is successful.</p>
<h1><a class="anchor" id="autotoc_md7"></a>
1.3. MacOS</h1>
<h2><a class="anchor" id="autotoc_md8"></a>
1.3.1. Install GCC Compiler</h2>
<ol type="1">
<li>Install GCC</li>
</ol>
<div class="fragment"><div class="line">brew install gcc</div>
</div><!-- fragment --><p>If Homebrew is not installed, please install Homebrew first:</p>
<div class="fragment"><div class="line">/bin/bash -c &quot;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)&quot;</div>
</div><!-- fragment --><ol type="1">
<li>Test and verify</li>
</ol>
<p>Open the command line and enter <code>gcc --version</code> , If the version number is displayed correctly, the installation is successful.</p>
<h2><a class="anchor" id="autotoc_md9"></a>
1.3.2. Install CMake</h2>
<ol type="1">
<li>Install CMake 3.28.3 or later</li>
</ol>
<div class="fragment"><div class="line">brew install cmake</div>
</div><!-- fragment --><ol type="1">
<li>Test and verify</li>
</ol>
<p>Open the command line and enter <code>cmake --version</code> , If the version number is displayed correctly, the installation is successful. </p>
</div></div><!-- contents -->
</div><!-- PageDoc -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.10.0
</small></address>
</body>
</html>
